/**
 * 功能描述  访问方式
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");

    //assets
    var template = require("./assets/tpl/visitway_main.tpl");
    require("./assets/css/visitway_main.css");

    //business

    //component
    var visitwaySubnavComp = require("./component/visitwaySubnavComp");
    var visitwayGridComp = require("./component/visitwayGridComp");
    var visitwayFormComp = require("./component/visitwayFormComp");
    
    //constant
    
    //handler

    //store
    var sleepSensor = require("./store/visitway");
    
    var visitway_main = ELView.extend({
        attrs: {
            template: template
        },
        initComponent: function (params, widget) {
        	visitwaySubnavComp.initComponent(params, widget); 
        	visitwayGridComp.initComponent(params, widget); 
        	visitwayFormComp.initComponent(params, widget); 
        
        },
        afterInitComponent: function (params, widget) {
            
        }
    });

    module.exports = visitway_main;
});
